package com.gf.common.bean;

import java.util.List;

public class DataResponse {

	/**
	 * 当前页
	 */
	private int page;

	/**
	 * 每页的条数:pagesize
	 */
	private int rows;

	private String sidx;

	private String _search;

	/**
	 * 搜索的字段
	 */
	private String searchField;

	/**
	 * 搜索的值
	 */
	private String searchString;

	private String sord;
	/**
	 * Total pages for the query 总的页数
	 */
	private int total;

	/**
	 * Total number of records for the query 所有的总的条数
	 */
	private int records;

	/**
	 * data list
	 */
	private List result;

	public DataResponse() {
		page = 1;
		rows = 0;
		records = 0;
		result = null;
	}

	public int getPage() {
		return page;
	}

	/**
	 * 当前页
	 * 
	 * @param page
	 */
	public void setPage(int page) {
		this.page = page;
	}

	public int getTotal() {
		return total;
	}

	/**
	 * 总共有多少页
	 * 
	 * @param total
	 */
	public void setTotal(int total) {
		this.total = total;
	}

	public int getRecords() {
		return records;
	}

	/**
	 * 总的条数
	 * 
	 * @param records
	 */
	public void setRecords(int records) {
		this.records = records;
	}

	public List getResult() {
		return result;
	}

	public void setResult(List result) {
		this.result = result;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSidx() {
		return sidx;
	}

	public void setSidx(String sidx) {
		this.sidx = sidx;
	}

	public String get_search() {
		return _search;
	}

	public void set_search(String _search) {
		this._search = _search;
	}

	public String getSearchField() {
		return searchField;
	}

	public void setSearchField(String searchField) {
		this.searchField = searchField;
	}

	public String getSearchString() {
		return searchString;
	}

	public void setSearchString(String searchString) {
		this.searchString = searchString;
	}

	public String getSord() {
		return sord;
	}

	public void setSord(String sord) {
		this.sord = sord;
	}

}
